/*
 * test.c
 *
 *  Created on: 28.12.2012
 *      Author: kir
 */
#include <xdc/std.h>
#include <xdc/runtime/Log.h>
#include <xdc/runtime/System.h>
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Task.h>
#include <xdc/cfg/global.h>

#include "math_tools.h"
#include "coords.h"
#include "obrabotka.h"
#include "registrat.h"

Void test_task(UArg arg0, UArg arg1)
{
          int i;
          LA_orient LA_or;
          float kren_an, kurs_an, ant_la[3];
          float ant_ht1[3];

          LA_or.gam_tang = M_PI/18;
          LA_or.ph_kren = M_PI/2;
          LA_or.ps_kurs = M_PI/4;
          kren_an = M_PI/3;
          kurs_an = M_PI/6;
          antenna_la(ant_la, kurs_an, kren_an);

          for (i=0; i<3; i++)
          {
                  Log_info2("ant_la[%d] = %f", i, floatToArg(ant_la[i]));
                  System_printf("ant_la[%d] = %f\n", i, ant_la[i]);
          }

          antenna_ht(ant_ht1, ant_la, LA_or, M_PI, M_PI/2, M_PI/3, M_PI/3);
          for (i=0; i<3; i++)
          {
                  Log_info2("ant_ht1[%d] = %f", i, floatToArg(ant_ht1[i]));
                  System_printf("ant_ht1[%d] = %f\n", i, ant_ht1[i]);
          }

          i = napr(1.5, 1, 0.1);
          Log_info1("napr = %d", i);

          BIOS_exit(0);
}

